package com.platform.modules.cpt.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


@Data
@TableName("CPT_ACCEPTANCE")
@ApiModel("竣工验收申请记录")
public class CptAcceptanceEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    @ApiModelProperty(value = "项目ID")
    private String prjId;

    @ApiModelProperty(value = "项目名称")
    private String prjName;
    
    @ApiModelProperty(value = "验收日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date aptDate;
    
    @ApiModelProperty(value = "领导小组-组长")
    private String leader;
    
    @ApiModelProperty(value = "领导小组-成员")
    private String members;
    
    @ApiModelProperty(value = "领导小组-副组长")
    private String deputyLeader;
    
    @ApiModelProperty(value = "0-未申请 1-监督条件核查中 2-竣工验收监督中 3-编写竣工验收情况中 4-编写质量监督报告中 5-主管部门审批盖章中 6-编写竣工验收报告中 7-已完成 10-条件核查不合格 11-竣工验收监督不合格")
    private Integer status;
    
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    @ApiModelProperty(value = "创建人ID")
    private String createUserId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUserName;    
    
    @ApiModelProperty(value = "建设单位机构ID")
    private String buildCorpId;
    
    @ApiModelProperty(value = "建设单位机构名称")
    private String buildCorpName;
    
    @ApiModelProperty(value = "单位工程名称")
    private String unitPrjName;
    
    @ApiModelProperty(value = "验收地点")
    private String site;
    
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty("项目地址-省")
    @TableField(exist = false)
    private String provinceNum;
    @ApiModelProperty("项目地址-市")
    @TableField(exist = false)
    private String cityNum;
    @ApiModelProperty("项目地址-区")
    @TableField(exist = false)
    private String countyNum;
    @ApiModelProperty("重新签名标志 1-重新签名")
    @TableField(exist = false)
    private Integer reSign;
}
